package edu.kjxy.worker0308;

import java.util.Scanner;

public class worker08 {

	public static void main(String[] args) {
		System.out.println("请输入所购数量：");
		
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		in.close();
		
		double price = 11.3 * num;
		int flag = 0;
		if(price > 50)
		{
			price *= 0.85;
			flag = 1;
		}
		if(flag == 1)
		{
			System.out.println("打折后价格：" + price);
		}
		else
		{
			System.out.println(price);
		}
	}

}
